import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex)

export default{
    state:{
        menuList: [],
        permList: [],
        hasRoute: false
    },
    mutations: {
        setPermList(state,perm){
            state.permList = perm
        },
        setMenuList(state,menu){
            state.menuList = menu
        },
        changeRouteStatus(state,hasRoute){
            state.hasRoute = hasRoute
        }
    },
    actions: {
        
    },
    modules: {
        
    }
}